<?php
/**
 * merk.php
 * @author ranuandra
 *
 * 10 Agu 2011 14:31:37
 *
 * 
 */

class Model_Merk extends ORM
{
			protected $_has_many = array(
									'polreg' 	=> array('model' => 'polreg'),
								);

			public function cek_data($merk)
			{
				return DB::select('id')
					->from($this->_table_name)
					->where('merk', '=', $merk)
					->execute($this->_db);				
			}
}